package com.spboot.service.impl;

import com.spboot.entity.Shoppingcart;
import com.spboot.mapper.ShoppingcartMapper;
import com.spboot.service.ShoppingcartService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author guocb
 * @since 2020-04-27
 */
@Service
public class ShoppingcartServiceImpl extends ServiceImpl<ShoppingcartMapper, Shoppingcart> implements ShoppingcartService {

    @Override
    public List<String> selectall(Integer userid) {
        return this.baseMapper.selectall(userid);
    }

    @Override
    public Long deletecart(Long cartid, Integer userid) {
        return this.baseMapper.deletecart(cartid,userid);
    }

    @Override
    public Integer selectsum(Long informationid, Long editionid, Long colorid, Long priceid) {
        return this.baseMapper.selectsum(informationid,editionid,colorid,priceid);
    }

    @Override
    public int inserttable(Long informationid, Long editionid, Long colorid, Long priceid) {
        return this.baseMapper.inserttable(informationid,editionid,colorid,priceid);
    }

    @Override
    public Integer selectid(Long informationid, Long editionid, Long colorid, Long priceid) {
        return this.baseMapper.selectid(informationid,editionid,colorid,priceid);
    }

    @Override
    public int insertcart(Long informationid, Long userid, Integer tableid) {
        return this.baseMapper.insertcart(informationid,userid,tableid);
    }

    @Override
    public Integer ssum(Integer Userid) {
        return this.baseMapper.ssum(Userid);
    }

    @Override
    public Integer zong(Integer Userid) {
        return this.baseMapper.zong(Userid);
    }

    @Override
    public Shoppingcart selectcart(Long cartid) {
        return this.baseMapper.selectcart(cartid);
    }

    @Override
    public Integer updatecart(Integer number, Long cartid) {
        return this.baseMapper.updatecart(number,cartid);
    }
}
